<?php
/**
 * DbException.php
 * @author 瀚海浪亭
 * @email  1171672036@qq.com
 * @date   2021/4/17
 */

namespace app\common\exception;


class DbException extends BaseException
{
    protected $code = -1;
    protected $message = '';

    public function __construct($code = -1, $message = '')
    {
        $this->code    = $code;
        $this->message = $message;
    }

    public function getErrorCode()
    {
        return $this->code;
    }

    public function getErrorMessage()
    {
        return $this->message;
    }
}